
import Request from '../util/request'

export default class User extends Request {

  register(data) {
    return this.request({
      url: '/h5/user/register',
      data
    })
  }

  login(data) {
    return this.request({
      // url: '/h5/user/login',
      url: '/api/admin/login',
      data
    })
  }

  getVerify(data) {
    return this.request({
      url: '/h5/user/verify-code',
      data
    })
  }

  checkVerify(data) {
    return this.request({
      url: '/h5/user/check-verify',
      data
    })
  }

  getInfo(data) {
    return this.request({
      url: '/h5/user/get-info',
      data
    })
  }

  getAvatar(data) {
    return this.request({
      url: '/h5/uni/center/get-avatar',
      data
    })
  }

  setAvatar(data) {
    return this.request({
      url: '/h5/uni/center/set-avatar',
      data
    })
  }
}
